package com.homework.T5;

import java.util.ArrayList;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/29 18:55
 * @description (id，名字，是否地主，牌集合)
 */
public class Player {
    private int pid;
    private String name;
    private String shenfen;
    private ArrayList<Card> cards;

    public Player(int pid, String name, String shenfen, ArrayList<Card> cards) {
        this.pid = pid;
        this.name = name;
        this.shenfen = shenfen;
        this.cards = cards;
    }

    public Player() {
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShenfen() {
        return shenfen;
    }

    public void setShenfen(String shenfen) {
        this.shenfen = shenfen;
    }

    public ArrayList<Card> getCards() {
        return cards;
    }

    public void setCards(ArrayList<Card> cards) {
        this.cards = cards;
    }

    @Override
    public String toString() {
        return "Player{" +
                "pid=" + pid +
                ", name='" + name + '\'' +
                ", shenfen='" + shenfen + '\'' +
                ", cards=" + cards +
                '}';
    }
}
